﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="Index.ascx.cs" Inherits="LDTB.UI.Index" %>
<!--Phần menu tìm kiếm và nút chức năng-->
<style type="text/css">
    .mss
    {
        font-size: larger;
    }
</style>
<div class="navigation">
    <div class="in-navigation">
        <span>Tìm kiếm</span>
        <asp:TextBox ID="txt_Search" runat="server" CssClass="txt-timkiem"></asp:TextBox>
        <asp:DropDownList runat="server" CssClass="sl-huyen" ID="ddl_Huyen" AutoPostBack="True"
            OnSelectedIndexChanged="ddl_Huyen_SelectedIndexChanged">
        </asp:DropDownList>
        <asp:DropDownList runat="server" CssClass="sl-xa" ID="ddl_Xa" AutoPostBack="True"
            OnSelectedIndexChanged="ddl_Xa_SelectedIndexChanged">
        </asp:DropDownList>
        <asp:Button ID="btnSearch" runat="server" Text="Tìm" CssClass="bt-search" OnClick="btnSearch_Click" />
        <div class="bt-function">
            <a href='<%=EditUrl("Edit") %>' class="bt-themmoi">Thêm mới</a>
            <asp:LinkButton ID="lbt_ExportECEL" runat="server" CssClass="bt-excel" OnClick="lbt_ExportECEL_Click">Xuất Excel</asp:LinkButton>
            <a href='<%=EditUrl("Village") %>' class="bt-themmoi">Xã</a>
            <a href='<%=EditUrl("Ward") %>' class="bt-themmoi">Huyện</a>
        </div>
        <!--end bt-function-->
        <div class="clear">
        </div>
        <asp:Panel runat="server" ID="pl_mss" CssClass="mss">
        </asp:Panel>
        <div class="clear">
        </div>
    </div>
    <!--end navigation-->
</div>
<!--end navigation-->
<!-- Phần nội dung hiển thị chính-->
<div class="primary">
    <asp:MultiView runat="server" ID="mv">
        <asp:View runat="server" ID="vList">
            <asp:Repeater ID="rptPeople" runat="server">
                <HeaderTemplate>
                    <ul class="ul-tis">
                        <li class="hoten">Họ và Tên</li>
                        <li class="coquan">Cơ quan</li>
                        <li class="dc-coquan">Năm sinh</li>
                        <li class="ngaysinh">Huyện </li>
                        <li class="gioitinh">Xã</li>
                        <li class="bt-chucnang">Thao tác</li>
                    </ul>
                </HeaderTemplate>
                <ItemTemplate>
                    <ul class="ul-content">
                        <li class="hoten">
                            <%#Eval("Name")%></li>
                        <li class="coquan">
                            <%#Eval("CoQuan") %></li>
                        <li class="dc-coquan">
                            <%#Eval("NamSinh") %></li>
                        <li class="ngaysinh">
                            <%#Eval("Huyen") %></li>
                        <li class="gioitinh">
                            <%#Eval("Xa")%></li>
                        <li class="bt-chucnang">
                            <asp:LinkButton ID="btnView" runat="server" OnClick="OnClick_Action" CommandName="View"
                                CommandArgument='<%#Eval("ID")%>'>Xem</asp:LinkButton>
                            <asp:LinkButton ID="LinkButton1" runat="server" OnClick="OnClick_Action" CommandName="Edit"
                                CommandArgument='<%#Eval("ID")%>'>Sửa</asp:LinkButton>
                            <asp:LinkButton ID="LinkButton2" runat="server" OnClick="OnClick_Action" CommandName="Copy"
                                CommandArgument='<%#Eval("ID")%>'>Copy</asp:LinkButton>
                            <asp:LinkButton ID="LinkButton3" runat="server" OnClick="OnClick_Action" CommandName="Delete"
                                CommandArgument='<%#Eval("ID")%>'>Xóa</asp:LinkButton>
                        </li>
                    </ul>
                </ItemTemplate>
            </asp:Repeater>
            <div class="clear">
            </div>
            <div class="pager phantrang">
                <asp:Literal ID="pnPaging" runat="server"></asp:Literal>
            </div>
        </asp:View>
        <asp:View runat="server" ID="vView">
        </asp:View>
    </asp:MultiView>
</div>
<!--end primary-->

<script type="text/javascript">
    $(document).ready(function() {

        $('.them-main input[readonly="readonly"]').css("background-color", "#3366cc");

    });
</script>

